<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>

<body>
    <div id="box">
        <ul>
            <li v-for="(value,key,index) in myobject">
                {{key}}--{{value}}--{{index}}
            </li>
        </ul>

        <!-- 有时为了测试，有下面写法 -->

        <ul>
            <li v-for="item in 10">
                {{ item }}
            </li>
        </ul>
    </div>
    <script>
        var obj = {
            data() {
                return {
                    myobject: {
                        title: 'How to do lists inVue',
                        author: 'Jane Doe',
                        publishedAt: '2024-4-10'
                    }
                }
            }
        }
        var app = Vue.createApp(obj).mount('#box')
    </script>
</body>

</html>